package com.cwnu.service;

import com.cwnu.entity.Category;

import java.util.List;

public interface CategoryService {
    Category findByCategoryName(String categoryName);

    Category findByNameAndId(String categoryName, Integer id);

    void createCategory(String categoryName);

    void updateCategory(String oldName, String newName);

    void deleteCategory(Integer id);

    List<Category> getCategory();

    List<Category> getAllCategory();
}
